<?php
/*
 * AuthAssign File
 *
 * @link http://riedel-st.de
 * @author Stefan Riedel <sr@riedel-st.de>
 */

/**
 * Widget for our Assign Functions
 *
 * @author Stefan Riedel
 */
class AuthAssign extends Portlet {
    public $divId;
    public $itemModel;
    public $tab;
    public $revokedData;
    public $assignedData;
    public $userId;
    public $data;
    public $topListModel;
    public $topListLabelField;
    public $topDownListLabelIdentifier;
    public $topListData;
    public $topListIdentifier;
    public $description;
    public $helpText;
    public $fieldsetName;
    public $topListHeader;
    public $revokeAssignName;

    protected function _renderContent() {

        $assign = $revoke = array("disabled"=>true);
        
        $this->render('tabs/widgetTemplate', array(
                'itemModel' => $this->itemModel,
                'divId' => $this->divId,
                'tab' => $this->tab,
                'revokedData' => $this->revokedData,
                'assignedData' => $this->assignedData,
                'userId' => $this->userId,
                'topListData' => $this->topListData,
                'topListModel' => $this->topListModel,
                'topListLabelField' => $this->topListLabelField,
                'topDownListLabelIdentifier' => $this->topDownListLabelIdentifier,
                'topListIdentifier' => $this->topListIdentifier,
                'assign' => $assign,
                'revoke' => $revoke,
                'description' => $this->description,
                'helpText' => $this->helpText,
                'fieldsetName' => $this->fieldsetName,
                'topListHeader' => $this->topListHeader,
                'revokeAssignName' => $this->revokeAssignName,
        ));
    }
}
?>
